import request from 'utils/request'


export const receive = params => request.post("/p/coupon/receive", params);  //领取优惠券
export const coupon = params => request.post("/p/coupon/my", params);  //优惠券列表
export const activateCoupon = params => request.post("/p/app/activateCoupon", params);  //激活优惠券或红包
export const myRedPack = params => request.post("/p/myRedPack", params);  //红包列表
export const couponCenter = params => request.post("/coupon/center", params);  //领券中心.
export const couponDetail = params => request.post("/couponDetail/" + params.couponId); //优惠券详情
export const getCouponDetail = params => request.get("/coupon/couponDetail/" + params); //优惠券详情

